package com.github.m6d21.sso.dao.permission.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.m6d21.sso.model.permission.entity.Permission;
import com.github.m6d21.sso.model.permission.qo.PermissionQO;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 *<p>
 *UserMapper
 *</p>
 *
 * @author liuyang
 * @date 2018-12-05 Wed 22:11:00
 * @since 1.0.0
 */
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {

    Permission get(@Param("id") Integer id);

    List<Permission> find(PermissionQO permissionQO);

    List<Permission> query(PermissionQO permissionQO);

    int insertPermission(Permission permission);

    int insertSelectivePermission(Permission permission);

    int updatePermissionById(Permission permission);

    int updateSelectivePermissionById(Permission permission);

    int deletePermissionById(@Param("id") Integer id);

    int deletePermissionByIds(@Param("ids") List<Integer> ids);

}
